<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<table class="table table-striped table-bordered table-condensed table-hover ">
  <caption>${loginUser.localName}的待办事项</caption>
  <thead>
  <tr>
    <th>控制</th>
    <th>标题</th>
    <th>拟文</th>    
    <th>拟文日期</th>
    <th>发送</th>
    <th>发送日期</th>
    <th>流程</th>
  </tr>
  </thead>
  <tbody>
<c:forEach items="${pager.rows }" var="row">
    <tr> 
      <td class="btn-group">
         <button type="button" class="btn btn-info"
            onclick="doWork('${row.workflowId}','${row.stepId}','${row.actionId}','${row.workflowName}')"
         >
              [${row.workflowId}]                                
                                               办理
         </button>
         <button type="button" onclick="doWatch('${row.workflowId}')"   class="btn btn-inverse">
            <i class="icon-white icon-eye-open"></i>
         </button>
      </td>     
      <td>
         
         ${row.title}
        
       </td>
      <td>${row.starter}</td>
      <td>${row.startDate}</td>
      <td>${row.sender}</td>
      <td>${row.sendDate}</td>
      <td>${row.workflowName}</td>
    </tr>
</c:forEach>
</tbody>
<tfoot>
  <tr>
    <td colspan="7">
       ${pager.pagination}
    </td>
  </tr>
</tfoot>
</table>
<script type="text/javascript" src="${base }scripts/apps/workflow/util.js"></script>